<?php

namespace app\common\model\server;

class ResourceModel
{
    public function __construct()
    {
        $this->logic = model('logic.resource');
        $this->group = model('logic.resource_group');
    }

    //保存添加
    public function uploadImg()
    {
        return $this->logic->uploadImg();
    }

    //保存添加
    public function uploadFile()
    {
        return $this->logic->uploadFile();
    }

    //保存添加
    public function setResourceStatus($data)
    {
        return $this->logic->setResourceStatus($data);
    }

    //保存添加
    public function delExpFile()
    {
        return $this->logic->saveDel();
    }

    //保存添加
    public function getResourceGaroupList()
    {
        return $this->group->getList();
    }

    //保存添加
    public function saveResourceGaroupAdd($data)
    {
        return $this->group->saveAdd($data);
    }

    //保存添加
    public function getResourceGaroupRow($data)
    {
        return $this->group->getRow($data);
    }

    //保存添加
    public function saveResourceGaroupEdit($data)
    {
        return $this->group->saveEdit($data);
    }

    //保存添加
    public function saveResourceGaroupDel($data)
    {
        return $this->group->saveDel($data);
    }

    //保存添加
    public function getResourceGaroupAll()
    {
        return $this->group->getAll();
    }
}
